package tables

type IdpBranch struct {
	Id       int64  `json:"id,string" gorm:"primaryKey"`
	Name     string `json:"name"`
	CityCode string `json:"cityCode"`
	Lng      string `json:"lng"`      //经度
	Lat      string `json:"lat"`      //纬度
	PlanePic string `json:"planePic"` //营业部平面图
	TitlePic string `json:"titlePic"` // 门头照片
	Admin    string `json:"admin"`
	Tel      string `json:"tel"` // ..。扩展信息
	AutoCreateInfo
}

func (r *IdpBranch) TableName() string {
	return "idp_branch"
}

type IdpMapBranchUser struct {
	Uid      int64 `json:"uid,string"`
	BranchId int64 `json:"branchId,string"`
}

func (r *IdpMapBranchUser) TableName() string {
	return "idp_map_branch_user"
}

type IdpMapBranchClient struct {
	ClientId int64 `json:"clientId,string"`
	BranchId int64 `json:"branchId,string"`
}

func (r *IdpMapBranchClient) TableName() string {
	return "idp_map_branch_client"
}
